<?php
class Zend_View_Helper_TableSorter extends Zend_View_Helper_Abstract{
    
    public function TableSorter(){
        return $this;
    }
    
	public function ScriptDivPage(){

		$div_pager= '<div id="pager" >';
		$div_pager .='<form>';
		$div_pager .='<button id="btn_first" class="first" title="Inicio">go to beginning</button>';
		$div_pager .='<button id="btn_prev"  class="prev"  title="Atras">Atras</button>';
		$div_pager .='<input type="text" class="pagedisplay ui-widget-content ui-corner-all" style="width : 50px;"  READONLY/>';
		$div_pager .='<button id="btn_next"  class="next"  title="Siguiente">Sigiente</button>';
		$div_pager .='<button id="btn_last"  class="last"  title="Fin">Fin</button>';
		
		//$div_pager .='<img src="image/first.png" class="first" style="cursor: pointer;" title="Inicio"/>';
		//$div_pager .='<img src="image/prev.png" class="prev" style="cursor: pointer;" title="Anterior"/>';
		
		//$div_pager .='<img src="image/next.png" class="next" style="cursor: pointer;" title="Siguiente"/>';
		//$div_pager .='<img src="image/last.png" class="last" style="cursor: pointer;" title="Fin"/>';
		$div_pager .='<select class="pagesize ui-widget-content ui-corner-all">';
		$div_pager .='<option selected="selected"  value="5">5</option>';
		$div_pager .='<option value="10">10</option>';
		$div_pager .='<option value="15">15</option>';
		$div_pager .='<option  value="20">20</option>';
		$div_pager .='</select>';
		$div_pager .='</form>';
		$div_pager .='</div>';
		$div_pager .='<script>
				$( "#btn_first" ).button({text: false,icons: {primary: "ui-icon-seek-start"}});
				$( "#btn_prev" ).button({	text: false,icons: {primary: "ui-icon-seek-prev"}});
				$( "#btn_next" ).button({text: false,icons: {primary: "ui-icon-seek-next"}});
				$( "#btn_last" ).button({text: false,icons: {primary: "ui-icon-seek-end"}});
			</script>';
		return $div_pager;
	}
}